package services;

import domain.News;

import java.util.List;

public interface NewsServices {
    public List<News> getNews();
    public List<News> getNewsByNumber(int tid,int no,int size);
    public List<News> getNewsByTopic(int ntid);

    /**
     * 查询新闻的条数
     * @param tid
     * @return
     */
    public int countNews(int tid);
    public News getNewsDetailsByNid(int nid);
    public int modifyNews(News news);
    public int addNews(News news);
    public int deleteNewsByNid(int nid);
}
